﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN23_1S.aspx.cs" Inherits="IFRS_WIN23_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsField,CONDITIONS_SEARCH%>" />
                </legend>
                <div class="table_detail">
                    <asp:PlaceHolder ID="form_control" runat="server">
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblDataType" runat="server" Text="<%$Resources:ifrsField,DATA_TYPE%>"></asp:Label>&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:RadioButtonList ID="rbtDataType" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="<%$Resources:ifrsField,TransactionCosts%>" Value="1" Selected="True"/>
                                    <asp:ListItem Text="<%$Resources:ifrsField,TransactionFees%>" Value="2" />
                                </asp:RadioButtonList>
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblSourceDataID" runat="server" Text="<%$Resources:ifrsField,SourceData%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:DropDownList ID="ddlSourceDataID" runat="server" SkinID="DropDownListWithNoColor" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblFeeAndCostTypeName" runat="server" Text="<%$Resources:ifrsField,SystemKrmType%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:TextBox ID="txtFeeAndCostTypeName" SkinID="L_TextBoxWithNoColor" runat="server"/>
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblFeeAndCostTypeNM" runat="server" Text="<%$Resources:ifrsField,SourceType%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:TextBox ID="txtFeeAndCostTypeNM" SkinID="L_TextBoxWithNoColor" runat="server"/>
                            </div>
                        </div>
                    </asp:PlaceHolder>
                </div>
                <div class="colbtn">
                    <div class="center">
                        <asp:Button ID="btnSEARCH" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>" OnClick="btnSEARCH_Click" />&nbsp;
                        <asp:Button ID="btnCLEAR" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>" OnClick="btnCLEAR_Click" />
                        &nbsp;
                        <asp:Button ID="btnCANCEL" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />
                        &nbsp;
                    </div>
                </div>
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,ADD%>" OnClick="btnAdd_Click" />
            </div>
            <div class="content_grid">
                <asp:GridView ID="gvSERACH" runat="server" AutoGenerateColumns="False" AllowSorting="true" Width="100%" CssClass="CSSTableGenerator" OnRowDataBound="gvSERACH_RowDataBound" OnSorting="gvSERACH_Sorting">
                    <Columns>
                        <asp:BoundField ItemStyle-HorizontalAlign="Center" DataField="RowNumber" HeaderText="ลำดับ" DataFormatString="{0:N0}" />
                        <asp:BoundField DataField="DataTypeName" HeaderText="<%$Resources:ifrsField,DATA_TYPE%>" SortExpression="DataTypeName" />
                        <asp:BoundField ItemStyle-HorizontalAlign="Center" DataField="FeeAndCostTypeCode" HeaderText="<%$Resources:ifrsField,CodeSystemKrmType%>" SortExpression="FeeAndCostTypeCode" />
                        <asp:BoundField DataField="FeeAndCostTypeName" HeaderText="<%$Resources:ifrsField,TypeSystemKrm%>" SortExpression="FeeAndCostTypeName" />
                        <asp:BoundField DataField="SourceDataName" HeaderText="<%$Resources:ifrsField,SourceData%>" SortExpression="SourceDataName" />
                        <asp:BoundField ItemStyle-HorizontalAlign="Center" DataField="FeeAndCostTypeCD" HeaderText="<%$Resources:ifrsField,CodeSourceData%>" SortExpression="FeeAndCostTypeCD" />
                        <asp:BoundField DataField="FeeAndCostTypeNM" HeaderText="<%$Resources:ifrsField,TypeSourceData%>" SortExpression="FeeAndCostTypeNM" />
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server" OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>" CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Securable%>" runat="server" OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Securable%>" CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server" OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>" CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server" OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>" CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="content_paging">
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>' Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
</asp:Content>
